package com.xjrh.traintravel.collector.netty.command.mvb;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * MVB-列车运行到站信息
 *  <p>
 *      列车到站时，接收MVB发送的站点：时间、上/下行、站点信息
 *  </p>
 *
 * @author snps
 * @create 2023-04-07 11:13
 * @describe
 **/
public class MvbStation extends BaseCommand implements Serializable {

    private static final long serialVersionUID = -3156497885021063577L;


    /** 设备编号 */
    private String equipmentNo;

    /** 时间 */
    private String time;

    /** 上下行标识（1：上行、2：下行、0：无法判断上下行） */
    private String runningDirection;

    /** 站点编号 */
    private String stationCode;

    /** 通过接收的16进制时间，转换后的日期时间 */
    private String datetime;


    /*****************************************
     * Getter and Setter
     */
    public String getEquipmentNo() {
        return equipmentNo;
    }

    public void setEquipmentNo(String equipmentNo) {
        this.equipmentNo = equipmentNo;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getRunningDirection() {
        return runningDirection;
    }

    public void setRunningDirection(String runningDirection) {
        this.runningDirection = runningDirection;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }


    @Override
    public String toString() {
        return "MvbStation{" +
                "time='" + time + '\'' +
                ", runningDirection='" + runningDirection + '\'' +
                ", stationCode='" + stationCode + '\'' +
                ", datetime='" + datetime + '\'' +
                '}';
    }

}